package com.erlang4j.internal.adapters;

import javax.swing.SwingUtilities;

import junit.framework.Assert;

import com.erlang4j.internal.process.IExecuteInSwingThread;

public class MockSwingAdapter extends MockAdapter implements IExecuteInSwingThread {

	public MockSwingAdapter(String pattern) {
		super(pattern);
	}

	@Override
	protected void checkSwingThead() {
		Assert.assertTrue(SwingUtilities.isEventDispatchThread());
	}

}